From bcdd4b64d7065776a58ede8b756a0289d7fbda8f Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 21 Aug 2009 06:43:24 +0000 Subject: [PATCH] * net/dbus.el (top): Initialize only when `dbusbind' is loaded. --- lisp/net/dbus.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el index aeff93f6d26..ccda21a2d22 100644 --- a/lisp/net/dbus.el +++ b/lisp/net/dbus.el @@ -835,9 +835,10 @@ name of the property, and its value. If there are no properties, ;; Initialize :system and :session buses. This adds their file ;; descriptors to input_wait_mask, in order to detect incoming ;; messages immediately. -(dbus-ignore-errors - (dbus-init-bus :system) - (dbus-init-bus :session)) +(when (featurep 'dbusbind) + (dbus-ignore-errors + (dbus-init-bus :system) + (dbus-init-bus :session))) (provide 'dbus) -- 2.30.2